﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TracNghiemV1.Database;
using TracNghiemV1.BUS;

namespace TracNghiemV1
{
    public partial class LoginDialog : Form
    {
        private SYSUSER m_loginUser;

        public SYSUSER LoginUser
        {
            get { return m_loginUser; }
            set { m_loginUser = value; }
        }

        public LoginDialog()
        {
            m_loginUser = null;
            InitializeComponent();
        }

        private void btnBack_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnNext_Click(object sender, EventArgs e)
        {
            m_loginUser = SysUserBus.FindSysUserWithUserIdAndPass(tbxUserName.Text, tbxPassword.Text);
            this.Close();
        }

    }
}
